package com.education.platform.dao;

import com.education.platform.common.dao.BaseDao;
import com.education.platform.dao.model.GoodsModel;
import org.springframework.stereotype.Repository;
import com.education.platform.dao.entity.GoodsDO;

import java.util.List;

/**
* describe: 商品
* @author : tomato
* @date: 2020-06-16 11:49:53.375
**/
@Repository
public interface GoodsDao extends BaseDao<GoodsDO> {

   List<GoodsDO> getSortList(GoodsModel query);

    /**
     * 增加销售量
     * @param num
     * @return
     */
   int incSalesNum(Integer num,Integer id);

}